import 'package:flutter/material.dart';

class EgWrap extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("换行布局"),
      ),
      body: new Center(
        child: new Wrap(
          spacing: 8.0,
          runSpacing: 4.0,
          children: <Widget>[
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("叶孤城叶孤城叶孤城"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "叶",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("西门吹雪"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "西门",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
            new Chip(
              label: new Text("欧阳冬冬"),
              avatar: CircleAvatar(
                backgroundColor: Colors.lightGreen.shade800,
                child: new Text(
                  "欧阳",
                  style: TextStyle(fontSize: 10),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
